#ifndef WEATHERDATA_H
#define WEATHERDATA_H

#include <QObject>
class Today
{
public:
    Today()
    {
        date = "2024";
        city = "孝感";
        ganmao = "";
        wendu = 0;
        shidu = "";
        pm25 = 0;
        quality = "";
        type = "";
        fl = "";
        fx = "";
        high = 30;
        low = 16;
    }
    QString date;
    QString city;
    QString ganmao;
    int wendu; //根据api接口获取的wendu是一个浮点数的字符串，但我们一般看温度都是整数，所以需要用到一个强制转换
    QString shidu;
    int pm25;
    QString quality;
    QString type;
    QString fx;
    QString fl;
    int high;
    int low;
};

class Day
{
public:
    Day()
    {
        date = "";
        week = "";
        type = "";
        high = 0;
        low = 0;
        fx = "南风";
        fl = "2级";
        aqi = 0;
        notice = "";
    }
    QString date;
    QString week;
    QString type;
    int high;
    int low;
    QString fx;
    QString fl;
    int aqi;
    QString notice;
};

#endif // WEATHERDATA_H
